package com.springboot.dubbo.controller;

import com.springboot.dubbo.pojo.UserInfoPojo;
import com.springboot.dubbo.service.ServiceInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * neu
 * 2019/7/24 13:46
 *
 * @Version : 1.0
 * @Description :
 */
@RestController
public class UserInfoController {

    @Autowired
    ServiceInfo serviceInfo;

    @ResponseBody
    @RequestMapping("/userInfoVojo")
    public List<UserInfoPojo> userInfoVojo(@RequestBody UserInfoPojo dojo)  {

        List<UserInfoPojo> userInfoVojo = serviceInfo.findUserInfoList(dojo);
        return userInfoVojo;
    }
}
